<template>
  <router-view></router-view>
  {{ d.time }}
</template>

<script lang='ts' setup>
import { ref, Ref } from 'vue';
import { getSMSVerificationCode, IGetSMSVerificationCodeResult } from '@/api/main';

const d: Ref<IGetSMSVerificationCodeResult['data']> = ref({
  time: 0,
});

getSMSVerificationCode({
  phoneNumber: 1333333333,
}, {
  successCb(data) {
    console.log(data);
    d.value = data.data;
  },
});
</script>

<style lang='less' scoped>
</style>
